package com.design.state;

public class RedState implements State{
    @Override
    public void last(Context context) {
        context.setState(new GreenState());
    }

    @Override
    public void next(Context context) {
        context.setState(new BlueState());
    }

    @Override
    public String getState() {
        return "red";
    }
}
